import request from 'utils/request'

/**
 * 登录
 * @param {string} mobile 手机号
 * @param {string} code 短信验证码
 * @returns Promise
 */
export const login = (mobile, code) =>
  request({
    url: '/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  })
